package cn.wolfcode.domain;

import java.util.ArrayList;
import java.util.List;

public class Province {
    private Long id;
    private String name;

    public Province() {
    }

    public Province(Long id, String name) {
        this.id = id;
        this.name = name;
    }

    public Long getId() {
        return id;
    }

    public String getName() {
        return name;
    }// 获取所有的省份

    public static List<Province> getAllProvince() {
        List<Province> provinces = new ArrayList<Province>();
        provinces.add(new Province(1L, "湖南"));
        provinces.add(new Province(2L, "广东"));
        provinces.add(new Province(3L, "湖北"));
        return provinces;
    }

    public String toString() {
        return "Province [id=" + id + ", name=" + name + "]";
    }


}
